package cn.lysoy.demo.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class TUser implements Serializable {
    /**
     * 用户ID，手机号码
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 两次MD5加密,MD5(MD5(pass明文+盐)+盐)
     */
    @TableField(value = "password")
    private String password;

    /**
     * 
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 头像
     */
    @TableField(value = "head")
    private String head;

    /**
     * 注册时间
     */
    @TableField(value = "register_date")
    private Date registerDate;

    /**
     * 最后一次登陆时间
     */
    @TableField(value = "last_login_date")
    private Date lastLoginDate;

    /**
     * 登陆次数
     */
    @TableField(value = "login_count")
    private Integer loginCount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}